package com.cuicui.mall.entity;

import java.io.Serializable;
import java.math.BigDecimal;

public class GoodsData implements Serializable {
    private Integer id;

    private String name;

    private Integer classifyId;

    private BigDecimal price;

    private String stock;

    private String remark;

    private static final long serialVersionUID = 1L;

    public GoodsData(Integer id, String name, Integer classifyId, BigDecimal price, String stock, String remark) {
        this.id = id;
        this.name = name;
        this.classifyId = classifyId;
        this.price = price;
        this.stock = stock;
        this.remark = remark;
    }

    public GoodsData() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getClassifyId() {
        return classifyId;
    }

    public void setClassifyId(Integer classifyId) {
        this.classifyId = classifyId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getStock() {
        return stock;
    }

    public void setStock(String stock) {
        this.stock = stock == null ? null : stock.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", classifyId=").append(classifyId);
        sb.append(", price=").append(price);
        sb.append(", stock=").append(stock);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}